C_FLAGS = -O3 -fomit-frame-pointer -funroll-loops LINKER = -Xlinker -Map -Xlinker mapfile -Xlinker -Ttext -Xlinker 80100000 OBJECTS = fMSX.o MSX.o Z80.o Psx.o all: fmsx fmsx: ${OBJECTS} gcc ${C_FLAGS} ${LINKER} -o fmsx ${OBJECTS} # Clean up. clean: del *.o del fmsx .c.o: gcc ${C_FLAGS} -c $< # Dependencies for the object files. fMSX.o: fMSX.c MSX.h Z80.h MSX.o: MSX.c MSX.h Z80.h Boot.h Z80.o: Z80.c Z80.h Codes.h CodesED.h CodesCB.h CodesXX.h Tables.h CodesXCB.h Psx.o: Psx.c MSX.h Z80.h Common.h Pad.h